<!DOCTYPE html>
<!--[if lt IE 6]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html lang="zh-CN" class="no-js"> <!--<![endif]-->
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  
  <title><?php echo !empty($title)?$title:meta('title');?></title>
  <meta name="keywords" content="<?php echo !empty($keywords)?$keywords:meta('keywords');?>">
  <meta name="description" content="<?php echo !empty($description)?$description:meta('description');?>">
  
  <!-- Site CSS -->
 <?php
	$public_application = $this->config->item('public_application');
 ?>
  <link href="<?php echo base_url($public_application."css/bootstrap.min.css")?>" rel="stylesheet">
  <link href="<?php echo base_url($public_application."css/bootstrap-theme.min.css")?>" rel="stylesheet">
  <link href="<?php echo base_url($public_application."css/common.css")?>" rel="stylesheet">
  <link rel="stylesheet" type="text/css" href="<?php echo base_url($public_application."js/elastislide/css/elastislide.css")?>">
  <!-- Extras CSS -->


  <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!--[if lt IE 9]>
    <script src="<?php echo base_url($public_application."js/html5shiv.min.js")?>"></script>
    <script src="<?php echo base_url($public_application."js/respond.min.js")?>"></script>
  <![endif]-->

  <script src="<?php echo base_url($public_application."js/jquery-1.8.2.min.js")?>"></script>
   <script>
		var site_url = "<?php echo site_url();?>";
   </script>
<script src="<?php echo base_url($this->config->item('public')."assets/js/common.js");?>"></script>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top bs-docs-nav">
  <div class="container">
    <div class="navbar-header">
      <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
        <span class="sr-only">Toggle navigation</span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
      <a href="<?php echo site_url();?>" class="navbar-brand">首页</a>
    </div>
    <nav class="navbar-collapse bs-navbar-collapse collapse">
      <ul class="nav navbar-nav">
        <li>
          <a href="#">至酷专属小黑2</a>
        </li>
        
      </ul>
      <div class="navbar-right wp-right-menu">
	      <ul class="nav navbar-nav">
		  	<?php
			if(!$this->user_model->islogin()):
			?>
	        <li>
	          <a href="<?php echo site_url("account/login");?>">登入</a>
	        </li>
	        <li>
	          <a href="<?php echo site_url("account/register");?>">注册</a>
	        </li>
	        <li>
	          <a href="<?php echo site_url("ecard/ecardList");?>">我的品牌书</a>
	        </li>
			<?php 
				else:
			?>
			
			<li><a href="<?php echo site_url("ecard/ecardList");?>">我的品牌书</a></li>
			<li class="dropdown">
              <a href="<?php echo site_url("account");?>" class="dropdown-toggle" data-toggle="dropdown"><?php echo guser('username');?><b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?php echo site_url('account')?>">个人资料</a></li>
                <li class="divider"></li>


                <li><a href="<?php echo site_url('account/logout')?>">退出登录</a></li>
              </ul>
            </li>
			
			<?php endif; ?>
	      </ul>
	      <p class="navbar-text">
	        分享 &nbsp;<a href="javascript:;" onclick="zopoShare('qzone')"><img src="<?php echo base_url($public_application."images/soc1.png")?>" /></a>
	            &nbsp;<a href="javascript:;" onclick="zopoShare('tqq')"><img src="<?php echo base_url($public_application."images/soc2.png")?>" /></a>
	            <a href="javascript:;" onclick="zopoShare('tsina')"><img src="<?php echo base_url($public_application."images/soc3.png")?>" /></a>
	            <a href="javascript:;" onclick="zopoShare('weixin')"><img src="<?php echo base_url($public_application."images/soc4.png")?>" /></a>
	      </p>
		  
      </div>
    </nav>
  </div>
</div>